/*
	The directives starting with # below ensures that this file is read by the compiler only once
	even if it is #included several times. It is call an "include guard"
*/
#ifndef CART_H_
#define CART_H_


#include <string>
#include <sstream>
//other types
#include "Date.h"				//uncomment once you have added the type definition

using namespace std;

struct Cart {
public:
	//data

	// constructors
	Cart (int cd, int cu, Date d)
	   : cart_id(cd),cust_id(cu), cart_purchase_date(d) {}

   // utility functions
	string display() const
	{
		stringstream str;
		str << cart_id << "\t" << cust_id << "\t" << cart_purchase_date.display();
		return str.str();
	}
	
	int getcartid() {
		return cart_id;
	}
	
	int getcustid() {
		return cust_id;
	}
	
	Date getpurchasedate() {
		return cart_purchase_date;
	}
	
//private:
   //constants

   // private data
	int cart_id;
	int cust_id;
	Date cart_purchase_date;	//uncomment once you have added the type definition
};


#endif //CART_H_